<% unless @cart.items.blank? %>

    <div class="col-md-12 shopping-price-table">
        <div class="table-responsive">
            <table class="table table-bordered">
                <tbody><tr class="table-title"><td class="cart-img"></td><td class="cart-name">PRODUCTO</td><td class="cart-edit">COLOR</td><td class="cart-price">PRECIO U.</td><td class="cart-qty">CANT.</td><td class="cart-subtotal">SUBTOTAL</td><td class="cart-del"></td></tr>

                    <% items.each do |item| %>
                        <% get_product(item.product_id) %>

                        <tr class="table-product-info">
                            <%= hidden_field_tag 'item_id', item.item_id %>
                            <td class="prod-img-center">
                              <div class="prod-table-img-c" style="text-align: center;"><img src="<%= @product.photo(:checkout) %>" alt="product-name"></div>
                            </td>
                            <td class="prod-name"><%= @product.model %></td>
                            <td class="prod-edit"><%= get_color_name(item.color_id) %></td>
                            <td class="prod-price"><span class="price"><%= show_price @product.get_price(current_user.client.kvn_branch) %></span></td>
                            <td class="prod-qty"><input type="text" value="<%= item.quantity %>"></td>
                            <td class="prod-tot"><span class="subtotal"><%= show_subtotal(@product.get_price(current_user.client.kvn_branch), item.quantity) %></span></td>
                            <td class="prod-del">
                              <%= link_to raw('<i class="fa fa-trash"></i>'), remove_product_from_cart_url(item.item_id), :remote => true, :class => "trash-table" %><br />
                            </td>
                        </tr>
                    <% end %>

                </tbody>
            </table>
        </div>
    </div>

    <div class="col-md-12 cart-but">
        <div class="cart-but-left">
            <p class="bold-text" style="font-size: 20px;">Total: <span id="total-amount"><%= show_price @cart.total_amount %></span></p>
        </div>
        <div class="cart-but-right">
            <div class="clear-cart-but">

            </div>
            <br>
            <br>
        </div>
    </div>

    <div class="col-md-12 cart-but">
        <div class="cart-but-left">
            <a class="continue" href="<%= new_order_url %>">REALIZAR PEDIDO</a> <a class="clear-cart" href="#">VACIAR CARRITO</a>
        </div>

        <div class="cart-but-right">
            <div class="clear-cart-but">

            </div>
            <br>
            <br>
        </div>
    </div>

<% else %>
    <p style="padding-left: 20px;">No hay productos seleccionados.</p>
<% end %>